package top.eggcode.modules.log.model;

import lombok.Data;
import top.eggcode.common.lang.BeanUnit;

import java.time.LocalDateTime;

/**
 * Title:
 * Description: TODO
 * Date: 2021/5/27 13:39
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Data
public class VisitLogView {


    private String username;

    private String toPath;

    private String fromPath;

    private LocalDateTime createdAt;

    public VisitLogEntity convert() {
        VisitLogEntity entity = new VisitLogEntity();
        BeanUnit.copy(this, entity);
        return entity;
    }
}
